package com.rapid.maintenance.ui.activity.auctionhouse;

import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import androidx.recyclerview.widget.RecyclerView;

import com.rapid.maintenance.R;
import com.rapid.maintenance.adapter.LatestPurchaseDemandAdapter;
import com.rapid.maintenance.base.BaseActivity;
import com.youth.banner.Banner;

import butterknife.BindView;
import butterknife.OnClick;

public class AuctionHouseMainActivity extends BaseActivity {
    @BindView(R.id.et_content)
    EditText etContent;
    @BindView(R.id.bt_search)
    Button btSearch;
    @BindView(R.id.banner)
    Banner banner;
    @BindView(R.id.tv_latest_purchase_demand)
    TextView tvLatestPurchaseDemand;
    @BindView(R.id.rv_latest_purchase_demand)
    RecyclerView rvLatestPurchaseDemand;
    LatestPurchaseDemandAdapter latestPurchaseDemandAdapter;

    @Override
    protected int provideRootLayout() {
        return R.layout.activity_auction_house_main;
    }

    @Override
    protected void init() {
        setTitle("竞价商城");
        setStatusBarColor(0xFF016DB6);
        setToolBarColor(0xFF016DB6);

        rvLatestPurchaseDemand.setAdapter(latestPurchaseDemandAdapter = new LatestPurchaseDemandAdapter());

        latestPurchaseDemandAdapter.addData(new Object());
        latestPurchaseDemandAdapter.addData(new Object());
        latestPurchaseDemandAdapter.addData(new Object());
    }

    @OnClick({R.id.bt_search, R.id.tv_more})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.bt_search:
                break;
            case R.id.tv_more:
                break;
        }
    }
}
